class Public {
    static login(param,fun){
        return $.post("/public/user/login",param,function (res) {
            if(typeof fun == 'function'){
                fun(res);
            }
        },'json')
    }

    static register(param,fun){
        return $.post("/public/user/register",param,function (res) {
            if(typeof fun == 'function'){
                fun(res);
            }
        },'json')
    }
}
